package com.mapper;


import com.entity.Student;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * 学生信息mapper层
 */
@Repository
public interface StudentMapper {

  /**
   * 添加学生信息
   * @param student
   * @return
   */
  int inseterStudent(Student student);

  /**
   * 查询学生信息
   * @param student
   * @return
   */
  List<Student> selectStudent(Student student);

  /**
   * 查询学生信息总条数
   * @return
   */
  int selectStudentTotal();

  /**
   * 查询单条学生信息
   * @param student
   * @return
   */
  Student selectAloneStudent(Student student);

  /**
   * 修改学生信心
   * @param student
   * @return
   */
  int updateStudent(Student student);

  /**
   * 删除学生信息
   * @param student
   * @return
   */
  int deleteStudent(Student student);
}
